package team.knowers.qzh.qzhadmin.controller;

import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
import team.knowers.qzh.qzhadmin.config.convention.result.Result;
import team.knowers.qzh.qzhadmin.config.convention.result.Results;
import team.knowers.qzh.qzhadmin.dto.resp.ShowSubjectRespDTO;
import team.knowers.qzh.qzhadmin.service.SubjectAdminService;

import java.util.List;

@RestController
@RequiredArgsConstructor
public class SubjectAdminController {
    private final SubjectAdminService subjectAdminService;
    @GetMapping("/api/qzh-admin/admin/v1/grame/subject/show")
    public Result<List<ShowSubjectRespDTO>> showsubject(){

        return Results.success(subjectAdminService.showsubject());
    }
}

